/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bishe.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 财产管理Entity
 * @author yue
 * @version 2018-12-27
 */
public class BisheGoods extends DataEntity<BisheGoods> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 物品名称
	private Integer goodsPrice;		// 价格
	private String goodsType;		// 物品类型
	private Integer sumNum;		// 总数量
	private Integer surplusNum;		// 剩余数量
	
	public BisheGoods() {
		super();
	}

	public BisheGoods(String id){
		super(id);
	}

	@Length(min=1, max=50, message="物品名称长度必须介于 1 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(Integer goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	
	@Length(min=1, max=50, message="物品类型长度必须介于 1 和 50 之间")
	public String getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}
	
	public Integer getSumNum() {
		return sumNum;
	}

	public void setSumNum(Integer sumNum) {
		this.sumNum = sumNum;
	}
	
	public Integer getSurplusNum() {
		return surplusNum;
	}

	public void setSurplusNum(Integer surplusNum) {
		this.surplusNum = surplusNum;
	}
	
}